<div id="wrap-notes">
    <div id="myCarousel" class="carousel slide">
        <!-- Carousel items -->
        <div class="carousel-inner">
            <? $first = true; foreach ($this->notes as $note) :?>
                <?/** @var $note Application_Model_Note */?>
                <div class="<?if ($first): ?>active<? endif;?> item">
                    <i title="Редактировать" class="icon-pencil" onclick="mn.getForm(<?= $note->getNoteId()?>, this)"></i>
                    <a style="text-decoration: none;" href="/notes/?id=<?= $note->getNoteType(); ?>">
                        <span class="label <?=$note->getLabel(); ?>"><?= !isset(Application_Model_Note::$types[$note->getNoteType()]) ?: Application_Model_Note::$types[$note->getNoteType()];?></span>
                    </a>
                    <?= $note->getNoteTitle() ?>
                </div>
                <? $first = false; ?>
            <? endforeach; ?>
        </div>
        <!-- Carousel nav -->
        <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
        <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
    </div>
</div>